package com.marketingexpert.exception;

import weibo4j.WeiboException;

public class MarketingExpertException extends RuntimeException {

	private static final long serialVersionUID = -6608820325241874783L;

	private String errCode;
	private String errMsg;
	
	public MarketingExpertException(String msg, Throwable cause) {
		super(msg, cause);
	}

	public MarketingExpertException() {
		super();
	}

	public MarketingExpertException(Throwable cause) {
		super(cause);
	}

	public MarketingExpertException(String errCode, String errMsg) {
		super(errCode + ":" + errMsg);
		this.errCode = errCode;
		this.errMsg = errMsg;
	}

	public MarketingExpertException(String string) {
		this.errMsg = string;
	}

	public MarketingExpertException(int statusCode, WeiboException e) {
		super(e);
		this.errCode = String.valueOf(statusCode);
	}

	public String getErrCode() {
		return this.errCode;
	}

	public String getErrMsg() {
		return this.errMsg;
	}
}
